package Laboratorio;
import java.sql.*;

public class tabella {
	public static void main(String[] args) throws Exception{
    	Class.forName("com.mysql.jdbc.Driver"); 
    	Connection con=DriverManager.getConnection("jdbc:mysql://localhost:3306/test","root","");
    	PreparedStatement statement=con.prepareStatement("select*from gsa");
    	ResultSet result=statement.executeQuery();
    	while(result.next()){
    		System.out.println(result.getString(1) + " " + result.getString(2) +" "+ result.getString(3) +" "+ result.getString(4) +" "+ result.getString(5));
    		}
    	}
}
